package day0418;


public class TestArray1 {
    public static void main(String[] args) {
        int[]  a={1,5,9,6};
        System.out.println(a.length);//元素个数


        int sum=0;
        for (int i = 0; i < a.length; i++) {
            sum=sum + a[i];
        }
        System.out.println(sum);




        int max=0;
        for (int i = 0; i < a.length; i++) {
            if(a[i]<max){
                max=a[i];
            }
        }
        System.out.println(max);



    }
}